<link rel="stylesheet" href="<?=base_url()?>assets/css/wanwanui/jwanwan.css" type="text/css" />
<script src="<?=base_url()?>assets/js/jcorp/Jform.js" type="text/javascript"></script>
<script type="text/javascript">
	jQuery(function($){
		$("#fileSrc").change(function(){
		    
			$('#submitForm').ajaxSubmit({
				url : "<?=base_url()?>index.php/sczp/imageUp/file",  
				dataType : "json",  
	            success : function(data){  
					if(data.type==1){
						$("#imgPathUrl").val(data.localPath);
						
						$("#loadText").load("<?=base_url()?>index.php/sczp/sczpcutview/<?=$uploadType?>/<?=$id?>?path="+data.path+"&localPath="+data.localPath);  
					}			              
	            },  
                error:function(){  
                   alert('error');  
               }   
			}); 
		});
		$("#go_back").click(function(){
			history.go(-1);	
		});
	});
</script>
<div class="wr1">
	<div class="logo"></div>
	<div class="zp">
		<div class="zp1" id="loadText"></div>
		<div class="zp2">
		<form method="post" action="" id="submitForm"	enctype="multipart/form-data">
			<p><strong>请上传你的照片</strong></p>
			<p>
			<input  id="imgPathUrl" type="text" class="zpfile" />
			<input type="button"   class="zpbut1" />
			<input type="file" name="file" id="fileSrc"  class="file" />
			</p>
			<p><input name="" id="cut_icon" type="button" class="upload_buttnon"><input id='go_back' name="" type="button" class="zpbut"></p>
		</form>
		</div>
		
	</div>
</div><!-- end wr1 -->


